<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>处理中...</title>
</head>
<body>
<form id="autoSubmitForm" method="post">
    <input type="hidden" name="recallUrl" id="recallUrl"><br>
    <input type="hidden" name="recallParams" id="recallParams"><br>
    <input type="hidden" name="openid" th:value="${fans.openid}" value="openid"><br>
    <input type="hidden" name="nickname" th:value="${fans.nickname}" value="nickname"><br>
    <input type="hidden" name="headImgUrl" th:value="${fans.headImgUrl}" value="headImgUrl"><br>
    <input type="hidden" name="timestamp" th:value="${timestamp}" value="timestamp"><br>
    <input type="hidden" name="signature" th:value="${signature}" value="signature"><br>
<!--    <button type="submit">提交</button>-->
</form>
<script>
    window.onload = function() {
        let recallUrl = sessionStorage.getItem("wx_commonAuthor_recallUrl");
        let recallParams = sessionStorage.getItem("wx_commonAuthor_recallParams");
        document.getElementById("recallParams").value = recallParams;
        if (recallUrl) {
            let form = document.getElementById("autoSubmitForm");
            form.action = recallUrl;
            form.submit();
        } else {
            console.error("recallUrl not found in sessionStorage");
        }
    };
</script>
</body>
</html>